﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using JMDCMS.Library.Win;
using JMDCMS.Library.Interfaces;

namespace JMDCMS.Win
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void siteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            JMDCMS.Win.Admin.Site site = new JMDCMS.Win.Admin.Site();

            site.MainBN = this.MainBN;

            site.Bind();

            site.Dock = DockStyle.Fill;

            HomeTp.Controls.Clear();
            HomeTp.Controls.Add(site);
        }

        #region EVENTS

        private void MenuItem_Click(object sender, EventArgs e)
        {
            
        }

        #endregion

        private void loginMI_Click(object sender, EventArgs e)
        {
        }

        private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
        {

        }

        private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
        {

        }

        private void saveToolStripButton_Click(object sender, EventArgs e)
        {
            ISave save;
            save = (ISave)HomeTp.Controls[0];
            save.Save();
        }

    }
}
